package com.byt.xmxb;

import com.byt.netapi.INetRequestInfo;

import java.util.HashMap;

public class NetworkRequestInfo implements INetRequestInfo {
    HashMap<String, String> headerMap = new HashMap<>();

    public NetworkRequestInfo(){
        headerMap.put("platform", "Android");
        headerMap.put("version", BuildConfig.VERSION_NAME); // String.valueOf(BuildConfig.VERSION_CODE)
        headerMap.put("client-type", "App");
        headerMap.put("app-type", "member"); // BuildConfig.APPLICATION_ID
    }

    @Override
    public HashMap<String, String> getRequestHeaderMap() {
        return headerMap;
    }

    @Override
    public boolean isDebug() {
        return BuildConfig.DEBUG;
    }
}
